import { Controller } from "../../mvc/core/Controller";
import { DataEvent } from "../events/DataEvent";
import { GameProxy } from "../mvc/GameProxy";
import { Dispatcher } from "../../mvc/core/Dispatcher";
import { EventName } from "../mvc/EventName";
//class CentralTaskController
    
    export  class CentralTaskController extends Controller
    {
       

        /* internal  */onCentralTaskWinOpenReq(arg1: DataEvent): void
        {
            GameProxy.centralTask.openCycleTask();
            return;
        }

        protected /* override */ initServer(): void
        {
            super.initServer();
            Dispatcher.addEventListener(EventName.CentralTaskWinOpen, this.onCentralTaskWinOpenReq);
            return;
        }
    }
